home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / comp / conflict.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  384 b   |  24 lines

  1. /*
  2.                         C O N F L I C T . C
  3. */
  4.  
  5. #include "iccomp.h"
  6.  
  7. int conflict(lval, rval, opcode)
  8.     ESTRUC_
  9.         *lval,
  10.         *rval;
  11.     OPCODE_
  12.         opcode;
  13. {
  14.     register int
  15.         ret;
  16.  
  17.     if ( (ret = !(lval->type & rval->type & optype[opcode])) )
  18.     {
  19.         semantic(type_conflict, opstring[opcode]);
  20.         clearbin(lval, rval);
  21.     }
  22.     return (ret);
  23. }
  24.